namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_CY_STOCKPILE")]
    public partial class PUB_CY_STOCKPILE
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PUB_CY_STOCKPILE()
        {
            RC_UPLOADING = new HashSet<RC_UPLOADING>();
        }

        [Key]
        [StringLength(40)]
        public string STOCKPILE_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string STOCKPILE_NAME { get; set; }

        [Required]
        [StringLength(40)]
        public string PARTITION_ID { get; set; }

        public decimal BEGIN_LENGTH { get; set; }

        public decimal END_LENGTH { get; set; }

        public decimal BEGIN_WIDTH { get; set; }

        public decimal END_WIDTH { get; set; }

        public decimal BEGIN_HEIGHT { get; set; }

        public decimal END_HEIGHT { get; set; }


        public virtual PUB_CY_PARTITION PUB_CY_PARTITION { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_UPLOADING> RC_UPLOADING { get; set; }
    }
}
